// src/api/index.ts
import Http from "./axios";
import api from "./api";

const server = (import.meta.env.VITE_APP_BASE_API || "").trim();


const host = server;

let obbj: any = {};
for (let key in api) {
  obbj[`${key}`] = api[key];
  for (let item in api[key]) {
    obbj[`${key}`][`${item}`] = host + api[key][item];
  }
}

let obj = { ...obbj };



export default Http(obj);
